<?php
//var_dump();
class KmProduceCate extends BaseModel
{
	public $res;
	public $redis_key="";
	public function getSource()
    {
				return "km_produce_cate";
    }
	public function initialize()
	{
		parent::initialize();
	}


	public function find_list($id){
        $condition="pid = {$id}";
        $res = $this::find(array(
            $condition,
			'cloumns'=>'id,name'
        ))->toarray();
        return $res;
    }


}
